<script setup>
import { useRoute } from 'vue-router'

const route = useRoute()

console.log(route.query)

</script>

<template>
    <img :src="route.query.img" alt="">
    <h2>{{ route.query.name }}</h2>
    <p>价格:￥{{ route.query.price }}</p>

</template>

<style lang="scss" scoped>

</style>